<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Ajax</title>
</head>
<body>
<div>
<script type="text/javascript">
var XMLHttpRequestObject = null;

try{
  XMLHttpRequestObject = new XMLHttpRequest();
}
catch(e){
  try{
    XMLHttpRequestObject = new ActiveXObject("Microsoft.XMLHTTP");
  }
  catch(e){
  }
}
if(XMLHttpRequestObject){
  for(indeks in XMLHttpRequestObject){
    try{
      document.write(indeks + " = " + XMLHttpRequestObject[indeks] + "<br>");
    }
    catch(err){
      document.write(indeks + "= \"brak odczytu\"<br>");
    }
  }
}
</script>
</div>
</body>
</html>
